<?php

namespace api\modules\v1\controllers;

use common\models\ApiRelease;
use yii\rest\Controller;

class ReleaseController extends Controller
{


    public function actionIndex()
    {
        $release= ApiRelease::find()->where(['status'=>1])->orderBy('id')->one();

        echo   '{
  "Code": 0,
  "Msg": "",
  "UpdateStatus": 1,
  "VersionCode": 1,
  "VersionName": "'.$release->version.'",
  "UploadTime": " '.$release->publish_at.'",
  "ModifyContent": "'.$release->content.'。",
  "DownloadUrl": "'.$release->file.'",
  "ApkSize": '.$release->apk_size.',
  "ApkMd5": "E4B79A36EFB9F17DF7E3BB161F9BCFD8"
}';die;
    }
}
